/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.com.proteu.hibernate.beans;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 *
 * @author ricardo
 */
@Entity
@Table(name="MEDICTOSEMBALAGENS")
public class MedictosEmbalagensProteu implements Serializable{

    @Id
    @Column(name="MEM_ST_CODIGO")
    private String memStCodigo;
    @Column(name="MEM_ST_DESCRICAO")
    private String memStDescricao;

    public String getMemStCodigo() {
        return memStCodigo;
    }

    public void setMemStCodigo(String memStCodigo) {
        this.memStCodigo = memStCodigo;
    }

    public String getMemStDescricao() {
        return memStDescricao;
    }

    public void setMemStDescricao(String memStDescricao) {
        this.memStDescricao = memStDescricao;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final MedictosEmbalagensProteu other = (MedictosEmbalagensProteu) obj;
        if ((this.memStCodigo == null) ? (other.memStCodigo != null) : !this.memStCodigo.equals(other.memStCodigo)) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 3;
        hash = 89 * hash + (this.memStCodigo != null ? this.memStCodigo.hashCode() : 0);
        return hash;
    }



}
